.search-stream__intro {
	@include breakpoint( "<660px" ) {
		margin-left: 16px;
	}
}

.search-stream .search {
	margin: 0;
}

.search-stream__fixed-area-separator {
	margin-top: 31px;
	margin-bottom: 0;
	background: #c8d7e1;
}

.is-reader-page .search-stream .reader-post-card.card {
	width: 100%;
}

.is-reader-page .search-stream__fixed-area {
	background-color: $white;
	position: fixed;
	top: 0px;
	padding-top: 77px;
	z-index: 20;
}

// Custom breakpoints needed to match Related Posts
$reader-related-card-v2-breakpoint-medium: "( min-width: 661px ) and ( max-width: 730px )";
$reader-related-card-v2-breakpoint-small: "( max-width: 535px )";

// Recommendations in Search
.is-reader-page .search-stream .reader__content {
	display: flex;
	flex-flow: wrap;
	margin-top: 80px;

	@include breakpoint( ">660px" ) {
		margin-top: 133px;
	}
}

.is-reader-page .search-stream__input-card.card {
	box-shadow: 0 0 0 2px lighten( $gray, 20% ), 0 1px 2px lighten( $gray, 20% );
 }

 .is-reader-page .search-stream__blank-suggestions {
	 margin-bottom: -15px;
 }

 .is-reader-page .search-stream__recommendation-list-item {
	box-sizing: border-box;
	border-bottom: 1px solid lighten( $gray, 20% );
	display: flex;
	flex-basis: calc( 50% - 15px );
	margin: 0 0 0 15px;
	padding: 18px 0 32px 0;

	@media #{$reader-related-card-v2-breakpoint-medium} {
		flex-basis: 100%;
		margin: 0;
	}

	@include breakpoint( "<660px" ) {
		flex-basis: calc( 50% - 30px );
		margin: 0 15px 0;
	}

	@media #{$reader-related-card-v2-breakpoint-small}  {
		flex-basis: 100%;
		margin: 0 15px 0;
	}

	&:nth-child( 2n+0 ) {
		flex-basis: calc( 50% - 15px );
		margin: 0 15px 0 0;

		@media #{$reader-related-card-v2-breakpoint-medium} {
			flex-basis: 100%;
			margin: 0;
		}

		@include breakpoint( "<660px" ) {
			flex-basis: calc( 50% - 30px );
			margin: 0 15px 0;
		}

		@media #{$reader-related-card-v2-breakpoint-small} {
			flex-basis: 100%;
			margin: 0 15px 0;
		}
	}

	.reader-related-card-v2__post {
		max-height: 205px;

		@media #{$reader-related-card-v2-breakpoint-small} {
			max-height: 100px;
		}

		@media #{$reader-related-card-v2-breakpoint-medium} {
			max-height: 100px;
		}

		.reader-related-card-v2__excerpt {
			-webkit-line-clamp: initial;
		}
	}

	 .has-thumbnail {

		.reader-related-card-v2__post {
			max-height: 200px;

			@media #{$reader-related-card-v2-breakpoint-small} {
				max-height: 145px;
			}

			@media #{$reader-related-card-v2-breakpoint-medium} {
				max-height: 145px;
			}
		}

		.reader-related-card-v2__site-info {

			@media #{$reader-related-card-v2-breakpoint-small} {
				margin-top: 45px;
			}

			@media #{$reader-related-card-v2-breakpoint-medium} {
				margin-top: 45px;
			}
		}
	}

	.reader-related-card-v2__featured-image {
		margin: 0 0 17px;

		@media #{$reader-related-card-v2-breakpoint-medium} {
			margin: 0 15px 0 0;
		}

		@media #{$reader-related-card-v2-breakpoint-small} {
			margin: 0 15px 0 0;
		}
	}

	.reader-related-card-v2__meta {
		align-items: flex-start;
		margin-bottom: 16px;

		.reader-related-card-v2__byline,
		.reader-related-card-v2__byline-author,
		.reader-related-card-v2__byline-site {
			margin-top: 0;
		}

		.reader-related-card-v2__byline-author {
			margin-bottom: -3px;
		}

		.follow-button {
			height: 25px;
			margin-top: 0;
			position: relative;
				top: -2px;

			@include breakpoint( "<480px" ) {
				margin-right: 0;
			}
		}

		.gravatar {
			margin: 4px 8px 0 0;
		}
	}
 }

.search-stream__input-card.card {
	margin-bottom: 16px;
	padding: 0;
	z-index: z-index( 'root', '.search-stream__input-card' );
}

.search-stream__blank {
	margin-top: 0;
	text-align:center;
}

.search-stream__blank-suggestions {
	font-size: 13px;
	color: $gray;
	margin-top: 0;
	text-align:left;

	a, a:visited {
		color: $blue-medium;
	}

	a:hover {
		color: $blue-light;
	}

	@include breakpoint( "<660px" ) {
		padding-left: 16px;
	}
}

.card.reader-search-card {

	&.is-photo {

		@include breakpoint( "<660px" ) {
			z-index: z-index( 'root', '.reader-search-card' );
		}
	}
}
